﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Globalization;
using System.Linq;
using System.Text;
using InputParsing;
using System.IO;

namespace BitmapCreator
{
    class Program
    {
        static void Main(string[] args)
        {
            var creator = InputParser.Instance;
            var reader = new FileStream("E_x.txt",FileMode.Open,FileAccess.ReadWrite);
            var result = creator.ParseToBitmap(new StreamReader(reader));
            reader.Close();
            result.Bitmap.Save("bitmap.bmp");
        }
    }
}
